<template>
  <div>
    <div>
        <h4>合并症</h4>
        <el-row>
          <el-col :span="6">
            <span>糖尿病 </span>
            <el-select v-model="pgForm.complication_value1" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6">
            <span>糖尿病 </span>
            <el-input v-model="pgForm.complication_input1" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
          <el-col :span="6">
            <span>高血压 </span>
            <el-select v-model="pgForm.complication_value2" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6">
            <span>高血压 </span>
            <el-input v-model="pgForm.complication_input2" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
          <el-col :span="6">
            <span>吸烟 </span>
            <el-select v-model="pgForm.complication_value3" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6" >
            <span>吸烟 </span>
            <el-input v-model="pgForm.complication_input3" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
          <el-col :span="6" >
            <span>慢性咳嗽 </span>
            <el-select v-model="pgForm.complication_value4" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6" >
            <span>慢性咳嗽 </span>
            <el-input v-model="pgForm.complication_input4" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
          <el-col :span="6">
            <span>便秘 </span>
            <el-select v-model="pgForm.complication_value5" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6">
            <span class="textIndent2">便秘 </span>
            <el-input v-model="pgForm.complication_input5" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
          <el-col :span="6" >
            <span class="textIndent1">粪失禁 </span>
            <el-select v-model="pgForm.complication_value6" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6">
            <span class="textIndent1">粪失禁 </span>
            <el-input v-model="pgForm.complication_input6" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
          <el-col :span="6">
            <span>肛门失禁 </span>
            <el-select v-model="pgForm.complication_value7" placeholder="请选择">
              <el-option
                v-for="item in optionsHeBingZheng"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="6">
            <span>肛门失禁 </span>
            <el-input v-model="pgForm.complication_input7" placeholder=""></el-input>
            <span> 年</span>
          </el-col>
        </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "complication",
  title: "合并症",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm: {
        complication_value1: '',
        complication_value2: '',
        complication_value3: '',
        complication_value4: '',
        complication_value5: '',
        complication_value6: '',
        complication_value7: '',
        complication_input1: '',
        complication_input2: '',
        complication_input3: '',
        complication_input4: '',
        complication_input5: '',
        complication_input6: '',
        complication_input7: '',

      },
      optionsHeBingZheng: [{
        value: '是',
        label: '是'
      }, {
        value: '否',
        label: '否'
      }],
    }
  }
}
</script>

<style scoped>
h4{
  color: #679ced;
}
.el-input{
  width: 40%;
}
.el-select {
  width: 40%;
}
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
